import type { Agree, ClockPage, UpdateClock } from '@/model'
import request from '@/utils/request'

export const handleCheckIn = () => request.get('/clockIn')
export const handleCheckOut = () => request.get('/clockOut')
export const handleCheckSelect = () => request.get('/getClock')

export const notClock = (reqInfoDTO: ClockPage) =>
  request.get('/notClock', {
    params: reqInfoDTO
  })

export const buQian = (data: UpdateClock) =>
  request.get('/AddClock', {
    params: data
  })
// 批量同意
export const add = (agree: Agree) =>
  request.post('/agreeReq', JSON.stringify(agree), {
    headers: {
      'Content-Type': 'application/json'
    }
  })
